import request from '@/utils/request'

// 查询矿机列表
export function listWalletMining(query) {
  return request({
    url: '/boot/wallet/walletMining/list',
    method: 'get',
    params: query
  })
}

// 根据id查询矿机
export function getMining(id) {
  return request({
    url: `/boot/wallet/walletMining/${id}`,
    method: 'get'
  })
}

// 新增矿机列表
export function addMining(data) {
  return request({
    url: '/boot/wallet/walletMining/add',
    method: 'post',
    data: data
  })
}

// 修改矿机列表
export function updateMining(data) {
  return request({
    url: '/boot/wallet/walletMining/edit',
    method: 'put',
    data: data
  })
}

// 删除矿机列表
export function delMining(id) {
  return request({
    url: '/boot/wallet/walletMining/del/' + id,
    method: 'delete'
  })
}